package com.demo.config.desensitizationConfig;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 这是自定义的脱敏策略枚举类型，用于指定脱敏策略，获取对应脱敏处理方法
 * @author wgr
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@JacksonAnnotationsInside
@JsonSerialize(using = DesensitizationJsonSerializable.class)
public @interface Desensitization {

	// 这是自定义的脱敏策略枚举类型，用于指定脱敏策略，获取对应脱敏处理方法
	DesensitizationStrategyEnum desensitizationStrategy();

}